home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_1119 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  353 b   |  18 lines

  1. on(release){
  2.    if(_root.money >= 800 && _root.swordSpell != 1)
  3.    {
  4.       _root.swordSpell = 1;
  5.       messo = "Got Sum. Sword!";
  6.       _root.summon_Sword._visible = true;
  7.       _root.money -= 800;
  8.    }
  9.    else if(_root.swordSpell == 1)
  10.    {
  11.       messo = "Already have it!";
  12.    }
  13.    else
  14.    {
  15.       messo = "Not enough money!";
  16.    }
  17. }
  18.